package dynamic.metadata.property;

import com.baomidou.mybatisplus.annotation.DbType;


public class KeySequence {

    String value =  "";

    DbType dbType =  DbType.OTHER;

    public KeySequence(String value, DbType dbType) {
        this.value = value;
        this.dbType =dbType;
    }

    public static KeySequence ofMysql(String value) {
        return new KeySequence(value, DbType.MYSQL);
    }
    public static KeySequence ofOracle(String value) {
        return new KeySequence(value, DbType.ORACLE);
    }
    public static KeySequence ofDB2(String value) {
        return new KeySequence(value, DbType.DB2);
    }

    public String value() {
        return value;
    }

    public DbType dbType() {
        return dbType;
    }

}
